home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 August: Tool Chest / Dev.CD Aug 99 TC.toast / What's New? / Development Kits / Hardware / Mac OS USB DDK v1.3a1 / Mac OS USB DDK Readme < prev    next >
Encoding:
Text File  |  1999-06-18  |  16.9 KB  |  434 lines  |  [TEXT/ttxt]

  1.  ***
  2.  ***       Universal Serial Bus(tm) (USB) for the Mac OS
  3.  ***    Mac OS USB 1.3a1 DDK Developer Release Notes
  4.  ***    Copyright 1998 Apple Computer, Inc.
  5.  ***
  6.  
  7.  
  8.  Table of Contents:
  9. -------------------------------------------------------------
  10.  Changes from USB v1.0, 1.0.1, 1.1, 1.2 -> 1.3a1
  11.  System Requirements for USB 1.3a1
  12.  USB Fundamentals
  13.  Keeping up to date on Mac OS USB
  14.  Getting started with Mac OS USB
  15.  Installing the Mac OS USB Software
  16.  Using the Mac OS USB DDK under MPW
  17.  Using the Mac OS USB DDK with MetroWerks CodeWarrior
  18.  Installing the Mac OS USB DDK for CodeWarrior for the First Time  
  19.  Updating a Previously Installed Mac OS USB DDK for CodeWarrior
  20.  Using the CodeWarrior Project Files
  21.  Description of Installed Files
  22.  Known Problems and Issues
  23.  Contact Information
  24. -------------------------------------------------------------
  25.  
  26. Changes from USB v1.0, 1.0.1, 1.1, 1.2 -> 1.3a1
  27. -------------------------------------------
  28.  
  29. Refer to the document "Mac OS USB v1.3a1 Readme" for a description
  30. of the changes between versions of USB.
  31.  
  32.  
  33. System Requirements for USB 1.3
  34. -------------------------------
  35.  
  36. Apple is formally qualifying USB 1.3 on the Macintosh systems with built-in USB and SSW 8.6 installed. To test with USB v1.3a1, first install SSW 8.6 onto a system with USB Built-in then follow the instructions below.  You can access the US version of the update with the following URL.
  37.  
  38. >http://download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/US/Macintosh/System/Mac_OS_8.6_Update/>
  39.  
  40. If your product depends on USB v1.2 for Isochronous support, you should 
  41. have your Installer check for the presence of this release of USB using
  42. the Gestalt function with the gestaltUSBVersion selector. This selector
  43. value is defined in the Gestalt.h header file which is part of the 
  44. Universal Interfaces and Libraries v3.2. Refer to the Mac OS USB
  45. Developer web site for information on how customers can upgrade to this 
  46. version of USB.
  47.  
  48.      <http://developer.apple.com/hardware/usb/devinfo.htm>
  49.  
  50.  
  51.  
  52. USB Fundamentals
  53. ----------------
  54.  
  55. For the current generation of Power Macintosh systems, USB is the 
  56. primary interface for connections to low to medium speed peripheral
  57. devices. There are numerous advantages for adopting the USB standard on
  58. Macintosh, and they are discussed in the "Mac OS USB DDK API Reference
  59. Guide". On the future Macintosh systems there will be no ADB, 
  60. Serial Port, or SCSI connections. USB will be the primary port 
  61. for connecting peripheral devices to the Macintosh. 
  62.  
  63. The DDK provides the tools, interfaces, system files, and module 
  64. examples for you to start development of USB products
  65. for the Macintosh. The DDK provides the same release of USB
  66. component software that ships on the introductory release of the
  67. Power Macintosh iMac system.
  68.  
  69.  
  70. Keeping up to date on Mac OS USB
  71. --------------------------------
  72.  
  73. To stay abreast with developments on Mac OS USB, check out the 
  74. Mac OS USB Developer web site for the latest information. As updates
  75. to Mac OS USB occur, development releases of the software will be
  76. made available from this web site. The URL for the web site is:
  77.  
  78. <http://developer.apple.com/dev/usb>
  79.  
  80. You can also subscribe to the Mac OS USB Developer
  81. mailing list where development questions regarding Mac OS USB
  82. are posed and answered. To submit a question to the mailing list
  83. you must first be a subscriber. To subscribe to the mailing list,
  84. send an email with the subject field set to "subscribe usb" 
  85. (omit the double quotes for the message) to requests@isg.apple.com.
  86.  
  87. Use the following URL to accomplish this.
  88.  
  89. <mailto:requests@isg.apple.com?SUBJECT=subscribe usb>
  90.  
  91. USB Alerts to developers are always posted to the mailing list.
  92. These alerts are also posted to the Mac OS USB Developer Web
  93. site at the following location.
  94.  
  95. http://developer.apple.com/dev/usb/devalerts.html
  96.  
  97.  
  98. Getting started with Mac OS USB
  99. -------------------------------
  100.  
  101. To develop with Mac OS USB v1.3, you will need a Power Macintosh system with USB built in, or a USB PCI card installed.  You should also have SSW 8.6 installed.
  102.  
  103. USB v1.3 will support PCI USB cards from several vendors. The enclosed software is for developmental purposes and will support USB PCI cards from other vendors, but it is not directly supported by Apple, nor is it intended for end-users. End-user customers are encouraged to 
  104. purchase a PCI USB card that includes licensed software and support.
  105.  
  106. You may find that development on a Power Mac system with a USB PCI card and serial port, is easier, as you can use the Power Mac Debugger with a second Power Macintosh system. A Power Macintosh system with ADBkeyboard is useful for debugging with Macsbug, since there are cases when
  107. the system cannot process keystrokes from a USB keyboard.
  108.  
  109.  
  110. Installing the Mac OS USB Software
  111. ----------------------------------
  112.  
  113. Before using the enclosed software on an iMac or 1999 Power Macintosh G3, 
  114. you must already have the Mac OS USB v1.1 present. If the Mac OS ROM file 
  115. includes this release of USB, do not install the system extension 
  116. components from this DDK to the Extensions Folder.
  117.  
  118. To install the USB System Software components, 
  119. 1. remove all files with the following names from your Extensions Folder, 
  120.  
  121.      USB Support,
  122.   USB Device Extension,
  123.   USBCompositeDriver,
  124.   USBFamilyExpert,
  125.   USBHIDKeyboardModule,
  126.   USBHIDMouseModule,
  127.   USBHIDUniversalModule,
  128.   USBHubDriver0,
  129.   USBHubDriver1, and
  130.   USBOpenHCIDriver
  131.   USBPrintDriver
  132.   USBCommClass
  133.   SerialShimLib
  134.  
  135. 2. drag copy the contents of the folder
  136.  
  137. :USBDDK:Extensions-AppleBuilt: 
  138.  
  139. to the Extensions folder.
  140.  
  141. 3. Before you reboot, modify the file "USB Support" to include
  142. a new resource 'usbx' (Resource ID = 1984).  Without this resource, this release of
  143. USB will not load. The following alert is raised to indicate that the 
  144. resource is not present.
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158. 4. Reboot your system after making this modification.
  159.  
  160.  
  161. Important Notes on Installation and Use of this DDK software
  162. ------------------------------------------------------------
  163.  
  164. This DDK will let you look at the sources to some working class 
  165. drivers, build the examples, and develop & build your own code.
  166.  
  167. Please remember that these driver samples are Copyright Apple 
  168. Computer, Inc.. You may use the supplied code to develop Class 
  169. Drivers for your devices. As for publishing the source code, please
  170. check first with the Mac OS USB DDK License agreement, included
  171. in this DDK.
  172.  
  173. The current driver samples may, reflect the latest
  174. state of the art of driver writing for USB in the Mac OS. Note that
  175. the PrinterClassModule sample is for example
  176. purpose only. This sample is the basis for real
  177. drivers under development, however we are unable to provide
  178. the actual class driver code. The remaining examples are the
  179. real code for the Keyboard HID, Mouse HID, Universal HID, and 
  180. Composite class drivers which will ship on the iMac
  181.  
  182. While not extensively tested (by the development team), 
  183. the sample sources have been tweaked slightly to make builds 
  184. under CodeWarrior some what less problematic. The project files 
  185. are provided to help jumpstart your development process.
  186.  
  187.  
  188. Using the Mac OS USB DDK under MPW
  189. ----------------------------------
  190.  
  191. For previous releases of the USB DDK, we provided a current 
  192. UserStartup•USBDDK and makefiles for each of the sample class
  193. drivers. As there are very few developers who program
  194. with the MPW environment and to expidite the release of this 
  195. DDK, we will no provide make files for the class driver samples, 
  196. nor UserStartup files for MPW.
  197.  
  198. If MPW is your primary development platform and you need 
  199. a make file for one of the example class drivers, submit a 
  200. request to the Mac OS USB mailing list and a sample make file, if
  201. available for the example, will be sent to you. See the section
  202. "Keeping up to date on Mac OS USB" above for information on
  203. how to subscribe to the Mac OS USB Developer mailing list.
  204.  
  205.  
  206. Using the Mac OS USB DDK with MetroWerks CodeWarrior
  207. ---------------------------------------------------
  208.  
  209. We have supplied MetroWerks CodeWarrior project files for
  210. all of the USB Modules code examples. All of the project
  211. files were created using CodeWarrior Pro 1, IDE 2.0. The 
  212. project files are also compatible with CodeWarrior Pro IDE 
  213. 2.1, 3.0 and later.
  214.  
  215. For the CodeWarrior IDE environments v2.0 - v3.0, you must use
  216. the Universal Interface & Libraries v3.1. The examples will
  217. not build using the interfaces supplied with the CodeWarrior
  218. v.2 - v3.0 environments. The URL for the Developer Development
  219. Kits web page is
  220.    
  221.    <http://developer.apple.com/sdk/>
  222.  
  223. As mentioned for MPW, it is highly recommend that you use 
  224. one Macintosh for coding purposes and one Mac (aka "Target"
  225. system) for checkout/testing purposes.
  226.  
  227. The supplied project files will place the built drivers
  228. and extensions into the Target folder of the DDK.
  229.  
  230.  
  231. Installing the Mac OS USB DDK for CodeWarrior for the First Time
  232. -----------------------------------------------------------
  233.  
  234. 1. You can place the USBDDK anywhere on your development
  235.    system for the CodeWarrior environment. The access paths
  236.    for the project files are project and compiler relative.
  237.    If you move the examples folders out of the DDK, you must
  238.    fix the access paths so that the sources can be found.
  239.   
  240. 2. Ensure that the CodeWarrior IDE environment has at least the 
  241.    Universal Interfaces and Libraries 3.1 installed. The
  242.    download file from the DDK website includes instructions
  243.    for upgrading your CodeWarrior environment. Note that if
  244.    you upgrade your interfaces, you will also need to 
  245.    upgrade your precompiled headers. The supplied CodeWarrior
  246.    project files do not use precompiled headers.
  247.  
  248. 3. Copy the USB.h file included in this SDK to the 
  249.    ":Mac OS Support:Headers:Universal Headers:" folder.
  250.  
  251. 4. You will find that the project files will place the built drivers
  252.    and extensions into the folder.
  253.  
  254.     "USBDDK:Extensions-MCWBuilt"
  255.  
  256.    If this folder does not exist, or the folder name is different,
  257.    the class driver samples will be created in the CodeWarrior folder.
  258.  
  259. Updating a Previously Installed Mac OS USB DDK for CodeWarrior
  260. -------------------------------------------------------------
  261.  
  262. 1. Copy the USB.h file included in this SDK to the 
  263.    ":Mac OS Support:Headers:Universal Headers:" folder. Do not
  264.    use the USB.h header file from an earlier USB DDK with the
  265.    supplied project files, as the examples may not build.
  266.  
  267. 2. If you experience compiler errors with the program samples,
  268.    check whether you have updated the USB.h header in the
  269.    ":Mac OS Support:Headers:Universal Headers:" folder.
  270.  
  271. 3. You will need to create a folder by the name
  272.  
  273.     "USBDDK:Extensions-MCWBuilt"
  274.  
  275.    If this folder does not exist, or the folder name is different,
  276.    the class driver samples will be created in the CodeWarrior folder.
  277.  
  278. Using the CodeWarrior Project Files
  279. ---------------------------------
  280.  
  281.    For the following samples, there is only a single target for 
  282.    each project:
  283.  
  284.    CompositeClassDriver
  285.    KeyboardModule
  286.    MouseModule
  287.    UniversalModule
  288.    USBKeypad
  289.    USBModem
  290.    USBTabletModule
  291.  
  292.    For the PrinterClassDriver example, compile the targets in 
  293.    the following order
  294.  
  295.   1. PrinterClassDRVR - creates the 68K DRVR resource
  296.   2. PrintClassDriver - creates the USB PrintClassDriver module
  297.   3. ChooserPack.rsrc - creates the "PACK" resource
  298.   4. USB Chooser Driver - creates the Chooser extension for the 
  299.      USB printer
  300.    
  301.    For the USBSampleStorageDriver example, compile the targets in 
  302.    the following order
  303.  
  304.   1. USBStorageClassDriver - creates the USB StorageClassDriver module
  305.   2. USBStorageClassShim - creates the shim module which loads the unit
  306.                            table driver when the device is attached
  307.      USBStorageClassUTDriver - auto built into shim - native driver
  308.                            compiled as a resource into shim file.   
  309.    
  310. Description of Installed Files
  311. --------------------------
  312. Files in the 'Extensions-AppleBuilt' folder:
  313. Files:                  Description:
  314. USB Device Extension    File which contains the following class drivers
  315.                         USBCompositeDriver - A class driver which is loaded for class 0
  316.                              & and subclass 0 devices (typically keyboards & mice, 
  317.                              although a few    printers & modems appear as composite 
  318.                              class devices).
  319.                                              USBHubDriver0 & USBHubDriver1 - The Hub driver for the root hub,
  320.                              the Apple USB keyboard's hub, and most 3rd party hubs.
  321.                         USBKeyboardModule - The HID Module loaded for a keyboard 
  322.                              interface (typically in a compound device)
  323.                         USBMouseModule - A HID Module loaded for a mouse interface 
  324.                              (typically in a compound device).
  325.                         USBHIDUniversalModule - A HID Module designed to support a
  326.                              number of 3rd party gaming devices via Game Sprockets. 
  327.                              Refer to the "Mac OS USB Compatibility Notes" for a 
  328.                              description of the game devices supported.
  329.                         USBOpenHCIDriver - The HAL (Hardware Abstraction Layer), also 
  330.                              known as the "UIM" (USB Interface Module). This driver 
  331.                              provides an abstracted interface to the OpenHCI host 
  332.                              controllers on Mac motherboards and PCI controller cards.                      
  333.  
  334. USB Support             The INIT (actually an 'expt') portion of the Family 
  335.                         Expert. Loaded prior to the INIT parade, it starts 
  336.                         the 'find a USB bus (i.e. UIM driver), loads the
  337.                         hub driver (for the root hub), and starts
  338.                         the hub driver running.  Once running, the
  339.                         hub driver locates devices attached to the
  340.                         port and asks the FamilyExpertLib to load
  341.                         drivers for the devices connected to the
  342.                         hub's ports.                            
  343.                             
  344. USBPrintDriver          A Printing Class Driver for experimentation
  345.                         purposes.  Printing WILL NOT be functional
  346.                         simply with the addition of this file.  The
  347.                         chooser extension needed for USB printing
  348.                         is still in development and has not yet
  349.                         been released.
  350.           
  351.     
  352. Known Issues
  353. ------------
  354.  
  355. The following is a list of known issues with this final release
  356. of the USB DDK.
  357.  
  358.   - If you install this release of USB 1.3a1 directly without adding
  359.     the 'usbx' (ID = 1984) resource, then USB will not load and an
  360.     alert message is displayed
  361.  
  362.     Refer to the instructions above in section "Installing the Mac 
  363.     OS USB Software" on how to modify the "USB Support" file so that 
  364.     it will function correctly.
  365.  
  366.   - The USBSampleStorageDriver does not correctly demonstrate how to
  367.     handle a hot unplug situation. This sample will be updated to 
  368.     demonstrate how this situation should be properly handled. The 
  369.     existing sample sets up a Timer Task which when fired makes a
  370.     call to SystemTask.  The call to SystemTask is not supported
  371.     from an interrupt context.
  372.  
  373. Contact Information
  374. -------------------
  375.  
  376.   Mac OS USB DDK Upgrades and latest information:
  377.     
  378.     Check the Developer Development Kits web page for
  379.         upgrades to the Mac OS USB DDK. The web page is
  380.         
  381.         <http://developer.apple.com/sdk/>
  382.  
  383.     For the latest information on Mac OS USB, check the Mac OS USB web page.
  384.     The web page is
  385.  
  386.     <http://usb.apple.com>
  387.  
  388.   For Bug Reports:
  389.  
  390.     To ensure the appropriate data is collected, please use the Bug Reporter  
  391.     to send us your bug reports. The Bug Reporter can be found at: 
  392.  
  393.     <http://developer.apple.com/bugreporter>
  394.  
  395.     When reporting problems, please include the machine configuration, 
  396.     including the vendor of the PCI USB card which you have tested with.
  397.  
  398.   For Technical Questions:
  399.  
  400.                 For generic Mac OS USB questions, submit them to the Mac OS USB 
  401.     Developer mailing list. Refer to the section above "Keeping up to date 
  402.     on Mac OS USB" for information on how to subscribe to this mailing list.
  403.     Often questions can be answered by someone on the mailing list.
  404.  
  405.  
  406.                 If your question is not answered on the mailing list, or if your question 
  407.     is proprietary, contact Worldwide Developer with purchased development-level 
  408.     technical support incidents at
  409.  
  410.     dts@apple.com
  411.  
  412.     Technical support incidents are bundled in our Premier and Select 
  413.     Developer programs. For information about joining our programs, 
  414.     please visit our Apple Developer Connection web site at 
  415.  
  416.     http://developer.apple.com/programs. 
  417.  
  418.     If you have never purchased a technical support incident and would like 
  419.     to find out how to do so, please visit the following site: 
  420.  
  421.     http://developer.apple.com/programs/techsupport.html . 
  422.  
  423.     
  424.   Comments, Suggestions and Enhancement Requests
  425.  
  426.     Please send all comments and suggestions regarding the Mac OS USB DDK to
  427.     
  428.     usb@apple.com
  429.  
  430.     All email sent to this address will be read, however, we will not be to
  431.     respond to all of your comments and suggestions.
  432.  
  433.         
  434.